package com.donglan.pethome.pay.service.impl;

import com.donglan.pethome.pay.domain.AlipayInfo;
import com.donglan.pethome.pay.mapper.AlipayInfoMapper;
import com.donglan.pethome.pay.service.AlipayInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: zhangdonghui
 * @Date: 2022/3/5 11:40
 */
@Service
public class AlipayInfoServiceImpl implements AlipayInfoService {

    @Autowired
    private AlipayInfoMapper alipayInfoMapper;

    /*
     * 功能描述 根据订单编号查询支付信息对象
     * @author zhangdonghui
     * @date 2022/3/5 11:40
     * @param out_trade_no 支付宝同步请求携带的订单编号
     * @return com.donglan.pethome.pay.domain.AlipayInfo
     */
    @Override
    public AlipayInfo loadByOrderSn(String out_trade_no) {
        AlipayInfo alipayInfo = alipayInfoMapper.loadByOrderSn(out_trade_no);
        return alipayInfo;
    }
}
